<script setup>
import * as Sentry from "@sentry/vue";
import { onMounted } from "vue";

onMounted(() => {
  throw new Error("111111111111111");
});

function handleClick() {
  // Sentry.captureMessage("Something went wrong");
  console.log(asasasa);
  // return new Promise((resolve, reject) => {
  //   reject("error1");
  // });
}

function handleClick1() {
  console.log(dadada);
}
</script>

<template>
  <div>
    <h1>home</h1>
    <button @click="handleClick">点击</button>
    <button @click="handleClick1">点击1</button>
  </div>
</template>

<style lang="scss" scoped>
</style>